package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the TBPOWERGROUP database table.
 * 
 */
@Entity
@NamedQuery(name="Tbpowergroup.findAll", query="SELECT t FROM Tbpowergroup t")
public class Tbpowergroup implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize=1,name="TBPOWERGROUP_POWERGROUPNO_GENERATOR", sequenceName="SEQHIS")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TBPOWERGROUP_POWERGROUPNO_GENERATOR")
	@Column(name="POWERGROUP_NO")
	private Long powergroupNo;
	
	@Column(name="POWER_NO")
	private BigDecimal powerNo;

	@Column(name="ROLE_NO")
	private BigDecimal roleNo;

	public Tbpowergroup() {
	}

	public Long getPowergroupNo() {
		return this.powergroupNo;
	}

	public void setPowergroupNo(Long powergroupNo) {
		this.powergroupNo = powergroupNo;
	}

	public BigDecimal getPowerNo() {
		return this.powerNo;
	}

	public void setPowerNo(BigDecimal powerNo) {
		this.powerNo = powerNo;
	}

	public BigDecimal getRoleNo() {
		return this.roleNo;
	}

	public void setRoleNo(BigDecimal roleNo) {
		this.roleNo = roleNo;
	}
	/**
	 * 角色权限
	 * @param powergroupNo
	 * @param powerNo
	 * @param roleNo
	 */
	public Tbpowergroup(Long powergroupNo, BigDecimal powerNo, BigDecimal roleNo) {
		super();
		this.powergroupNo = powergroupNo;
		this.powerNo = powerNo;
		this.roleNo = roleNo;
	}
	
	

}